package com.lele.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lele.pojo.Admin;
import com.lele.pojo.Role;
import com.lele.pojo.vo.LoginAdminVo;
import com.lele.utils.Result;

import javax.servlet.http.HttpServletRequest;
import java.security.Principal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lele
 * @since 2022-11-26
 */
public interface IAdminService extends IService<Admin> {

/*    Result login(LoginAdminVo adminVo, HttpServletRequest request);*/

    Admin getAdminInfo(String name);

    Admin getAdminInfoByPrincipal(Principal principal);
    /**
     * 获取到账号所对应的角色信息
     */
    List<Role> getAdminWithRoles(Integer id);

    List<Admin> getAllAdmin(String keywords);
}
